package week4;

/**
 * Created by mc on 2017/3/18.
 */
class Some{
     void doService() {
        System.out.println("some service");
    }
}
class Other extends Some{

    void doService(){

        System.out.println("other service");
    }
}
public class yi
{
    public static void main(String[] arge)
    {
        Other other = new Other();
        other.doService();

    }
}